﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Common.Model;
using Common.ServiceLogic;

namespace Common.UI.Report.Views.Interfaces
{
    public interface IReportPresentationModel<V, C, S>
        where V : ViewEntity
        where C : CriteriaEntity
        where S : IGenericReportServiceLogic<V, C>, new()
    {
        #region Filter
        IFilterView FilterView
        {
            get;
            set;
        }

        void LoadCriteria(C CriteriaEntity);

        event SearchCalledEventHandler SearchCalled;
        #endregion

        #region List

        IListView ListView
        {
            get;
            set;
        }

        void LoadList(C CriteriaEntity);

        void AddColumnDefinition(String columnName, String header);


        bool AllowExport { get; set; }

        bool AllowPrint { get; set; }

        #endregion
    }
}
